<link rel="stylesheet" href="../addons/jy_xiu/resource/css/show.css?v=13.3"/>
    <script> var  your_demain='{{pagedata.demain}}';
   var  your_webname='{{pagedata.webname}}';
   var  logo_url='{{pagedata.demain}}';
   var  lastpagelink='{{pagedata.demain}}';
	var lastpagetext_color='';
    var  lastpagetext='{{pagedata.webname}}';
	var jubao_link='{{pagedata.demain}}';
</script>
<link rel="stylesheet" href="../addons/jy_xiu/resource/css/my.css"/>
<div id="ppitest" style="width:1in;visible:hidden;padding:0px"></div>
<div class="p-index main phoneBox" id="con">
    <div class="top"></div>
    <div class="phone_menubar"></div>
    <div class="scene_title_baner">
        <div class="scene_title">{{pagedata.sceneinfo.title}}</div>
    </div>
    <div class="nr" id="nr">
        <div id="audio_btn" class="off">
            <div id="yinfu"></div>
            <audio loop src="" id="media" autoplay="" preload></audio>
        </div>
        <div id="loading" class="loading">
            <div class="loadbox">
                <div class="loadlogo" style="background-image: url('{{tomedia(pagedata.sceneinfo.loadinglogo)}}');"></div>
                <div class="loadbg" ></div>
            </div>
        </div>
         <div id="verifyCode" class="verifyCode" ng-if="pagedata.sceneinfo.accesscode">
            <div class="container">
                <div class="scene-cover">
                    <img class="cover-img" src="{{tomedia(pagedata.sceneinfo.thumbnail_varchar)}}" />
                </div>
                <div class="scene-name">{{pagedata.sceneinfo.title}}</div>              
        
                <div class="confirm-password">
	                <label class="verify-label" for="password">请输入访问密码</label>
	                <div class="verify-tips" id="verifyTip">
						<ul class="password-indicator">
							<li></li>
							<li></li>
							<li></li>
							<li></li>
						</ul>
					</div>
					<div class="password-numbers">
						<span>1</span>
						<span>2</span>
						<span>3</span>
						<span>4</span>
						<span>5</span>
						<span>6</span>
						<span>7</span>
						<span>8</span>
						<span>9</span>
						<span>0</span>
					</div>
					<div class="password-operation">
						<span class="btn-clear" id="btnClear">清空</span>
						<span class="btn-cancel" id="btnCancel">取消</span>
					</div>
                </div>
            </div>
        </div>
    </div>
    <div class="bottom"></div>
</div>

<!--<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="../addons/jy_xiu/resource/js/jquery.min.js"></script>-->
<script >
 (function (window, $) {
   window.PREFIX_URL = "http://"+window.location.host+"/";
    window.PREFIX_S1_URL =  "http://"+window.location.host+"/";//"/json/";
    window.PREFIX_S2_URL ="http://"+window.location.host+"/";
	window.PREFIX_S6_URL ="http://"+window.location.host+"/";
    window.PREFIX_HOST = "http://"+window.location.host+"/";
    window.PREFIX_HOST1 = "http://"+window.location.host+"/";
	window.PREFIX_SHOW_HOST = "http://"+window.location.host+"/";
	window.TRACK_HOST = "http://"+window.location.host+"/";
    window.PREFIX_FILE_HOST = "http://"+window.location.host+"/resource/";
	window.PREFIX_COMPANY_HOST_ARRAY = ["http://"+window.location.host, "http://"+window.location.host];
	window.OLD_FILE_HOST="http://"+window.location.host+"/";
    window.CLIENT_CDN ="http://"+window.location.host+"/addons/jy_xiu/resource/"; 
   window.clientWidth = document.documentElement.clientWidth;
    window.clientHeight = document.documentElement.clientHeight;    
	window.PREFIX_HOST_ARRAY = [
			"http://"+window.location.host,
			"http://"+window.location.host,
			"http://"+window.location.host,
			"http://"+window.location.host
		];
       
})(window, jQuery)
</script>
 <script type="text/javascript" src="../addons/jy_xiu/css/show.js?v=13.3"></script>
<script>
 
	var scene = {id:{{pagedata.confinfo.sceneid_bigint}},code:"{{pagedata.sceneinfo.scenecode_varchar}}",name:"{{pagedata.sceneinfo.scenename_varchar}}",bgAudio:{"url":"{{pagedata.sceneinfo.musicurl_varchar}}","name":"","id":202382032},pageMode:{{pagedata.sceneinfo.movietype_int}},cover:"{{pagedata.sceneinfo.cover}}",property:{{pagedata.sceneinfo.property}}};
	   <php>if(pagedata.sceneinfo.accesscode):</php>
      eqShow.bootstrapWithPassword(); 
	   <php>else:</php>
	 eqShow.bootstrap();
	   <php>endif;</php>
	   
	   (function () {
        function isMobile() {
            return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobi/i.test(navigator.userAgent) ||
                    window.innerWidth < 500;
        }

        function setScale() {
            if (window.top !== window) {
                return;
            }
            var pageScale = 1;

            var width = document.documentElement.clientWidth || 320;
            var height = document.documentElement.clientHeight || 486;


            if (width / height >= 320 / 486) {
                pageScale = height / 486;
            } else {
                pageScale = width / 320;
            }
             console.log('screen.width', width, 'screen.height', height, 'setScale', pageScale);
            // meta
            var content = 'width=320, initial-scale=' + pageScale + ', maximum-scale=' + pageScale + ', user-scalable=no';
            document.getElementById('viewport').setAttribute('content', content);
        }
        
        if (isMobile()) {
            setScale();
        }

    })();
	
</script>
 <script>
          wx.config({
			  debug: false,
			  appId: '{{pagedata.confinfo.appId}}',
			  timestamp: "{{pagedata.confinfo.timestamp}}",
			  nonceStr: '{{pagedata.confinfo.nonceStr}}',
			  signature: '{{pagedata.confinfo.signature}}',
			  jsApiList: [
				'onMenuShareTimeline',
				'onMenuShareAppMessage'
			  ]
		  });
          wx.ready(function () {
		  
			  var shareData64 = {
				title: '{{pagedata.sceneinfo.scenename_varchar}}',
				desc: '{{pagedata.sceneinfo.desc_varchar}}',
				link: PREFIX_URL+'v/{{pagedata.sceneinfo.scenecode_varchar}}',
				imgUrl:  PREFIX_FILE_HOST  +'{{pagedata.sceneinfo.thumbnail_varchar}}'
			  };
			  wx.onMenuShareAppMessage(shareData64);
			  wx.onMenuShareTimeline(shareData64);
			  $("#media").get(0).play();
          });
		  
		  
		wx.error(function (res) {
			//alert(res.errMsg);
		});
</script>